class Persistent {
  static set(key, val) {
    if(typeof  val === 'object'){
      (window as any).localStore.set(key, JSON.stringify(val))
    }else{
      (window as any).localStore.set(key, val)
    }
  }
  static get(key) {
    return (window as any).localStore.get(key)
  }
}

export {
  Persistent
}
